2026-09-20 · a-plus, comptia, class-notes
Note: this video doesn't map directly to an exam objective. Messer presents it as a primer: everything in the networking domain builds on it, so it's worth learning well.
Class notes · Professor Messer, CompTIA A+ 220-1201 Core 1 · Section 2 primer (supports objective 2.1)
Quick reference: the short version of this lesson is the Introduction to IP cheat sheet, part of Section 2.
Note: this video doesn't map directly to an exam objective. Messer presents it as a primer: everything in the networking domain builds on it, so it's worth learning well.
By the end of these notes you should be able to:
Networks move information from one device to another over many kinds of link: Ethernet, wireless, DSL and others. From the Internet Protocol's point of view, it doesn't matter which one carries it. What matters is the information inside the packets.
Networking
Analogy
Job
The network (Ethernet, wireless, DSL…)
The road
Carries traffic from place to place
IP (Internet Protocol)
The truck
Carries the data between devices, using addresses
TCP or UDP
The boxes in the truck
Package the data, and label which service it's for
Application data
The contents of each box
The information that matters: a web page, an email, a voice call
We load the truck, drive it across the road, and unpack it at the other end.
Each layer wraps the one inside it — boxes inside the truck, contents inside the boxes.
A laptop sends a request to a web server over Ethernet:
+----------+--------+--------+---------------------+----------+ | Ethernet | IP | TCP | HTTP data | Ethernet | | header | header | header | (the web request) | trailer | +----------+--------+--------+---------------------+----------+ |<--------- Ethernet payload ---------->| |<-------- IP payload -------->| |<--- TCP payload --->|Unwrapping from the outside in:
The web server decapsulates in the same order: Ethernet, then IP, then TCP, then HTTP to the web server software. Other protocols can have even more layers to drill into.
TCP and UDP both transport data inside IP, but they behave very differently.
Note: networking professionals (and Network+ material) call TCP and UDP OSI Layer 4 protocols. The A+ exam doesn't require the OSI model, but you'll see the term in books and other study material.
TCP and UDP allow multiplexing: communicating with multiple devices, and running many different kinds of traffic, at the same time — with everything arriving at the right place on the other side. Your browser, email and a voice call can all share one network connection simultaneously.
TCP is connection-oriented: there's a formal setup before data flows, and a formal teardown at the end.
The phone-call analogy:
Client Server |-- setup: hello? ---------------->| |<- setup: hello! -----------------| |-- data ------------------------->| |<- acknowledgement ---------------| |-- data ------------------------->| |<- acknowledgement ---------------| |-- teardown: goodbye ------------>| |<- teardown: goodbye -------------|
TCP feature
What it means
Reliable delivery
You know the data was received, because the receiver acknowledges it
Acknowledgements
Every piece of data sent is confirmed back to the sender
Retransmission
If data arrives damaged or corrupted, the receiver tells the sender, and it's resent
Flow control
The receiver can tell the sender to speed up or slow down, depending on how much it can handle
This constant cycle of send and acknowledge is what gives TCP its reliability — like sending post with a return receipt.
Note (beyond this lesson): the setup is the three-way handshake — SYN, SYN-ACK, ACK — covered in the Section 2 networking notes.
UDP is connectionless: no formal setup, no formal teardown — it just sends.
Client Server |-- data ------------------------->| |-- data ------------------------->| |-- data ------------------------->| (no setup, no acknowledgements, no teardown)
UDP characteristic
What it means
"Unreliable" delivery
There's no way to know whether the data was received
No acknowledgements
The receiver never replies to confirm
No error recovery or retransmission
Lost or damaged data is simply gone — at the UDP level
No flow control
The receiver can't ask the sender to speed up or slow down
Very little overhead
No setup, and no acknowledgement traffic. It's best effort
"Unreliable" doesn't mean bad — it means UDP doesn't guarantee delivery.
Real-time communication — voice over IP (VoIP) and live video. If part of a conversation is lost, you can't rewind time and replay that moment through the same connection. Resending old audio would only arrive too late to be useful. So real-time apps prefer UDP's low overhead, and simply carry on. If someone missed a word, they ask you to repeat it.
Simple request-and-response protocols — they need low overhead, and if something fails the application just tries again:
The application can take over reliability. UDP doesn't retransmit, but an application using UDP can track what it sent and decide for itself whether to resend. Some apps (like DHCP retrying) do; others (like VoIP) deliberately don't.
Applications that must get every byte right rely on TCP to handle delivery, so the application doesn't have to:
TCP maintains the whole data flow, confirms receipt and resends anything missing.
TCP
UDP
Connection
Connection-oriented (formal setup and teardown)
Connectionless
Delivery
Reliable — acknowledged
"Unreliable" — best effort
Retransmission
Yes, by TCP
No (the application may do it)
Flow control
Yes
No
Overhead
Higher
Very low
Examples
HTTPS, SSH, web, email
VoIP, video, DHCP, TFTP
Application
Protocol
Reasoning
Downloading a software update
TCP
Every byte must arrive intact
A live video call
UDP
Real-time; late data is useless, so don't retransmit
Getting an IP address when a laptop joins a network
UDP (DHCP)
Small and simple; if it fails, just ask again
Remote admin of a Linux server
TCP (SSH)
Commands and output must be exact
Streaming a live football match
UDP (typically)
Real-time; a dropped frame is better than a pause
A removal company needs an address to collect from and an address to deliver to. In networking, these are IP addresses. Every device on the network has one, just as every house on a street has an address.
A house has many rooms, and a server runs many services. One server might be a web server, a DNS (Domain Name System) server, a file server and a VoIP server all at once. When data arrives at the server's IP address, the server still has to decide which service gets it.
In the house analogy:
Every flow involves, at each end:
Server side
Client side
IP address
The server's IP
The client's IP
Protocol
TCP or UDP
TCP or UDP
Port number
The service's port
The client's own port — so replies find their way back
Note (beyond this lesson): the official split (IANA) is 0–1,023 well-known, 1,024–49,151 registered and 49,152–65,535 dynamic. Windows picks ephemeral ports from 49,152–65,535 by default. For the exam, Messer's "1,024–65,535" is the idea to know: clients use temporary high-numbered ports.
Fact
Detail
Range
0–65,535 for TCP, and separately 0–65,535 for UDP
TCP and UDP are separate
TCP port 80 is not the same as UDP port 80 — same numbering scheme, different protocols
Ports aren't security
A port is just a reference number. Moving a service to an unusual port doesn't hide it — it's easy to find
Service
Protocol and port
Web server
TCP 80
VoIP server
UDP 5004
Email server
TCP 143
All three conversations run at the same time over Ethernet (Ethernet header and trailer), each carrying IP, and inside that either TCP or UDP.
A packet capture shows three flows:
Flow
Source IP
Destination IP
Protocol
Source port
Destination port
Application
1
10.0.0.1
10.0.0.2
TCP
51,734 (random)
80
Web (HTTP)
2
10.0.0.1
10.0.0.2
UDP
62,208 (random)
5004
VoIP
3
10.0.0.1
10.0.0.2
TCP
49,915 (random)
143
The source ports are illustrative — the point is that they're random and different.
How to read it:
If the client opened a fourth connection — say, a second browser tab to the same server — it would pick another random source port. That's multiplexing in action.
netstat -an \
Get-NetTCPConnection -State Established | Select-Object LocalAddress, LocalPort, RemoteAddress, RemotePortExample netstat line:
Proto Local Address Foreign Address State TCP 10.0.0.1:51734 10.0.0.2:80 ESTABLISHED
Reading it: the local (client) side uses ephemeral port 51734; the remote (server) side uses well-known port 80. That's an HTTP connection.
ss -tun \
Term
Definition
IP (Internet Protocol)
Carries data between devices using IP addresses
Packet
A unit of data sent across a network
Ethernet frame
The unit of data on an Ethernet network, with a header and trailer
Header / trailer
Control information at the start / end of a unit of data
Payload
The data carried inside a frame, packet or segment
Encapsulation
Wrapping data inside successive protocol layers when sending
Decapsulation
Unwrapping those layers when receiving
HTTP / HTTPS
Hypertext Transfer Protocol / its secure, encrypted version
TCP
Transmission Control Protocol — connection-oriented and reliable
UDP
User Datagram Protocol — connectionless, best effort
OSI Layer 4
The transport layer of the OSI model, where TCP and UDP sit
Multiplexing
Carrying many simultaneous conversations over one network
Connection-oriented
Having a formal setup and teardown
Connectionless
Sending without any setup or teardown
Acknowledgement
Confirmation from the receiver that data arrived
Retransmission
Resending data that was lost or damaged
Flow control
The receiver regulating how fast the sender transmits
Overhead
Extra traffic and processing beyond the data itself
VoIP
Voice over IP — real-time voice communication
DHCP
Protocol that automatically assigns IP addresses (uses UDP)
TFTP
Trivial File Transfer Protocol — simple file transfer over UDP
SSH
Secure Shell — encrypted terminal communication over TCP
Port number
A number (0–65,535) identifying a service or connection endpoint
Non-ephemeral / well-known port
A permanent service port, usually 0–1,023
Ephemeral port
A temporary client port, chosen randomly for one connection
Protocol decode
A breakdown of captured traffic, showing each layer's fields